package com.xxx.yuedong.community.service;

import com.xxx.yuedong.common.R;
import com.xxx.yuedong.community.pojo.Dynamic;

import java.util.ArrayList;
import java.util.HashMap;

public interface DynamicService {


    /**
     * 发布动态功能
     * @param param
     * @return
     */
    public int insert(Dynamic dynamic);

    /**
     * 编辑动态
     * @param param
     * @return
     */
    public int update(Dynamic dynamic);

    /**
     * 删除动态
     * @param ids
     * @return
     */
    public int deleteDynamicById(HashMap param);

    /**
     * 动态详情
     * @return
     */
    public HashMap searchDynamicDetailById(Long id);

    /**
     * 分页查询所有动态
     * @param param
     * @return
     */
    public R searchDynamicByPage(HashMap param);
}
